﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowEstateApproval.aspx.cs" Inherits="ZLDC.Estate.TM.ShowEstateApproval" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>楼盘栋阁房号审核意见</title>
    <base target="_self" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../js/jquery/jquery.hiAlerts-min.js" type="text/javascript"></script>

    <script src="../js/LexunJS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table id='tableList1' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>
            <tr>
                <td height='25' style="width: 50%" bgcolor='#F7F7F7' align="right">
                    审核意见：
                </td>
                <td height='25' style="width: 50%" bgcolor='#FFFFFF' align="left">
                    <textarea id="Approval_views" style="height: 80px;"></textarea>
                </td>
            </tr>
            <tr>
                <td height='25' bgcolor='#FFFFFF' align="center" colspan="2">
                    <input id="btnSave" type="button" class="button_bak" style="cursor: pointer;" value="提交"  onclick="javascript:Check();"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="btnReturn" type="button" value="返回" class="button_bak" onclick="window.close();"
                        style="cursor: pointer;" />
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        function Check() {
            var id = LexunJS.GetQueryString("id"); // 楼盘ID
            var typeid = LexunJS.GetQueryString("typeid");
            var Approval_views = document.getElementById("Approval_views").value;
            
            if (typeid == 1) {
                $.ajax({
                    type: 'POST',
                    url: '../Handler/HandlerCheck.ashx',
                    data: 'act=EstateCheckApproval_views&id=' + id + '&Approval_views=' + Approval_views,
                    timeout: '10000',
                    error: function() {
                        alert("楼盘审核失败！");
                    }, success: function(outmsg) {
                        window.close();
                    }
                });
            } else if (typeid == 2) {
                $.ajax({
                    type: 'POST',
                    url: '../Handler/HandlerCheck.ashx',
                    data: 'act=BuildCheckApproval_views&id=' + id + '&Approval_views=' + Approval_views,
                    timeout: '10000',
                    error: function() {
                        alert("栋阁审核失败！");
                    }, success: function(outmsg) {
                        window.close();
                    }
                });
            } else if (typeid == 3) {
                $.ajax({
                    type: 'POST',
                    url: '../Handler/HandlerCheck.ashx',
                    data: 'act=RoomnoCheckApproval_views&id=' + id + '&Approval_views=' + Approval_views,
                    timeout: '10000',
                    error: function() {
                        alert("房号审核失败！");
                    }, success: function(outmsg) {
                        window.close();
                    }
                });
            }
        }
    </script>
</body>
</html>
